Click here to Skip to main content
15,905,877 members
Please Sign up or sign in to vote.
2.67/5 (2 votes)
See more:
How can we set n Days trial period in C#.NET Windows application.
Please give me the full source code. After 10 days, the application should expire.
Posted
Updated 6-Mar-10 23:04pm
v3

Well one way is to store the install/first run date and license type (Trial or Full License), this can be done in either a text file or the registry, in either case it should be encrypted.

When your app starts it checks this value and compares it to the current date if more than 10 days have passed and it is a trial license you do not allow the program to run.

And no source code will be provided for this.
 
Share this answer
 
v4
Here is a sample[^].

No one will provide the source code for you.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900